package com.ltu.config.shiro.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ltu.model.request.user.WxMaLoginReq;

//@Data
public class SmsCodeLoginReq extends WxMaLoginReq{
    @ApiModelProperty(required = true,value="登陆用户名：前台是手机号，管理页面是账号")
    @NotNull(message = "用户名不可以为空")
    private String username;

    @ApiModelProperty(required = true, value="短信验证码")
    private String  smsCode;
    
    @ApiModelProperty(value="登录端：1移动端2PC端",required = false,hidden = true)
    private  Integer type=1;
    
    @ApiModelProperty(value="登录角色：常规用户",required = false,hidden = true)
	@NotNull
	@Max(2)@Min(1)
    private Integer roleType=1;
    

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getSmsCode() {
		return smsCode;
	}

	public void setSmsCode(String smsCode) {
		this.smsCode = smsCode;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getRoleType() {
		return roleType;
	}

	public void setRoleType(Integer roleType) {
		this.roleType = roleType;
	}


    
    
}
